package operation;
import book.Book;
import book.BookList;
import ioperation.IOPeration;

/**
 * @Description
 */

public class ExitBook implements IOPeration {
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统.....");
        int currentSize = bookList.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            //bookList[i] = null;
            bookList.setBooks(i,null);
        }
        bookList.setUsedSize(0);
        System.exit(0);
    }

}
